<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="sf" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>主页</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  		<h1 align="center">商务会员管理系统</h1>
  		<h3>用户名：<s:property value="#session.USERS.name"/>,&nbsp;&nbsp;&nbsp;用户类型：<s:property value="#session.USERS.userType.name"/>&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:invalidate()">退出登陆</a> </h3>
  		<h3><a href="update" target="mm">修改密码</a></h3>
  		<h3 id="hidden"><a href="look" target="mm">查看所有会员</a> </h3>
  		<s:debug></s:debug>
  		<iframe name="mm" src="welcome" width="1000px" height="500px"></iframe>
  		
  </body>
   <script type="text/javascript" src="res/js/jquery-1.8.3.js"></script>
  	<script type="text/javascript">
  		$(function(){
	  		if(1 == ${user.id}){
	  			$('#hidden').hide();
	  		}
  			window.invalidate=function(){
  				if(confirm('确定要退出系统吗？')){
					location='invalidate';
				}
  			}
  		});
  	</script>
</html>
